package com.kuaiyin.vo;

import com.kuaiyin.enums.Status;
import com.kuaiyin.sampling.BaseVo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
@Schema(name = "UserVO", description = "用户视图对象")
public class UserVO extends BaseVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "用户ID")
    private Long id;

    @Schema(description = "登录账号")
    private String username;

    @Schema(description = "所属部门ID")
    private Integer departmentId;

    @Schema(description = "部门名称（从部门表关联查询）")
    private String departmentName;

    @Schema(description = "状态：0-禁用 1-启用")
    private Status status;
}